(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/invite-open-share/index" ], {
    "01bd": function(e, n, t) {
        t.r(n);
        var r = t("9af8"), o = t.n(r);
        for (var c in r) [ "default" ].indexOf(c) < 0 && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(c);
        n.default = o.a;
    },
    "7a13": function(e, n, t) {},
    "9af8": function(e, n, t) {
        var r = t("4ea4").default;
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var o = r(t("a34a")), c = r(t("c973")), i = r(t("ded3")), a = t("8c2c"), s = t("f4f3"), u = {
            name: "InviteOpenShare",
            components: {
                BottomPopup: function() {
                    Promise.all([ t.e("common/vendor"), t.e("components/bottom-popup/index") ]).then(function() {
                        return resolve(t("54a1"));
                    }.bind(null, t)).catch(t.oe);
                },
                HCheckbox: function() {
                    t.e("components/h-checkbox/index").then(function() {
                        return resolve(t("45cc"));
                    }.bind(null, t)).catch(t.oe);
                }
            },
            data: function() {
                return {
                    DEFAULT_USER_AVATAR: s.DEFAULT_USER_AVATAR,
                    showAddressBookWelcome: !1,
                    checkedInviteMember: [],
                    memberList: []
                };
            },
            computed: {
                canInvite: function() {
                    return this.checkedInviteMember.length > 0;
                },
                addressBookInviteMemberList: function() {
                    return this.memberList.map(function(e) {
                        return (0, i.default)((0, i.default)({}, e), {}, {
                            checked: !0
                        });
                    });
                }
            },
            methods: {
                open: function() {
                    var e = this;
                    return (0, c.default)(o.default.mark(function n() {
                        return o.default.wrap(function(n) {
                            for (;;) switch (n.prev = n.next) {
                              case 0:
                                return n.next = 2, e.getMemberList();

                              case 2:
                                if (0 !== e.memberList.length) {
                                    n.next = 5;
                                    break;
                                }
                                return e.$error({
                                    title: "暂无可邀请成员"
                                }), n.abrupt("return", Promise.resolve({
                                    type: "noMember"
                                }));

                              case 5:
                                return e.showAddressBookWelcome = !0, n.abrupt("return", new Promise(function(n) {
                                    e.callRerolve = n;
                                }));

                              case 7:
                              case "end":
                                return n.stop();
                            }
                        }, n);
                    }))();
                },
                closeAddressBookWelcome: function() {
                    this.showAddressBookWelcome = !1, this.callRerolve({
                        type: "cancel"
                    });
                },
                handleInvite: function() {
                    var e = this, n = this.checkedInviteMember.map(function(e) {
                        return e.user_fid;
                    });
                    (0, a.inviteShareGroup)({
                        user_fids: n
                    }).then(function(n) {
                        if (0 !== n.ret) return e.$error({
                            title: n.msg || s.API_ERROR_MESSAGE
                        });
                        e.showAddressBookWelcome = !1, e.showAddressBookTips = !1, e.callRerolve({
                            type: "confirm"
                        }), e.$success({
                            title: "已发送邀请"
                        });
                    });
                },
                filterCheckMember: function() {
                    this.checkedInviteMember = this.addressBookInviteMemberList.filter(function(e) {
                        return e.checked;
                    });
                },
                onInviteListClick: function(e) {
                    e.checked = !e.checked, this.filterCheckMember(), this.$forceUpdate();
                },
                getMemberList: function() {
                    var e = this;
                    return (0, c.default)(o.default.mark(function n() {
                        var t, r;
                        return o.default.wrap(function(n) {
                            for (;;) switch (n.prev = n.next) {
                              case 0:
                                return n.next = 2, (0, a.getOrderMemberList)({
                                    is_need_admin: 0,
                                    share_type: 2
                                });

                              case 2:
                                t = n.sent, r = t.data, e.memberList = (null == r ? void 0 : r.un_member_list) || [], 
                                e.filterCheckMember();

                              case 6:
                              case "end":
                                return n.stop();
                            }
                        }, n);
                    }))();
                }
            }
        };
        n.default = u;
    },
    cc72: function(e, n, t) {
        var r = t("7a13");
        t.n(r).a;
    },
    d8f9: function(e, n, t) {
        t.r(n);
        var r = t("dfec"), o = t("01bd");
        for (var c in o) [ "default" ].indexOf(c) < 0 && function(e) {
            t.d(n, e, function() {
                return o[e];
            });
        }(c);
        t("cc72");
        var i = t("f0c5"), a = Object(i.a)(o.default, r.b, r.c, !1, null, "7d5a726b", null, !1, r.a, void 0);
        n.default = a.exports;
    },
    dfec: function(e, n, t) {
        t.d(n, "b", function() {
            return r;
        }), t.d(n, "c", function() {
            return o;
        }), t.d(n, "a", function() {});
        var r = function() {
            var e = this, n = (e.$createElement, e._self._c, e.addressBookInviteMemberList.length);
            e.$mp.data = Object.assign({}, {
                $root: {
                    g0: n
                }
            });
        }, o = [];
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/invite-open-share/index-create-component", {
    "components/invite-open-share/index-create-component": function(e, n, t) {
        t("543d").createComponent(t("d8f9"));
    }
}, [ [ "components/invite-open-share/index-create-component" ] ] ]);